<!DOCTYPE html>
<html lang="zh"
	  xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
	<meta charset="utf-8">
	<title>添加学校</title>
	<link rel="stylesheet" th:href="@{/layui/css/layui.css}" href="../../../static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" th:href="@{/css/public.css}" href="../../../static/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
	<input type ="hidden" id="id" name="id"/>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">学校名称</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input name" lay-verify="required|name" placeholder="请输入学校名称" required>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">简称</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input short_name" lay-verify="" placeholder="请输入学校简称" >
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-form-item userAddress">
			<label class="layui-form-label">所在地区</label>
			<div class="layui-input-inline">
				<select name="province" id="province" lay-filter="province" class="province" required lay-verify="required">
					<option value="">请选择省份</option>
				</select>
			</div>
			<div class="layui-input-inline">
				<select name="city" id="city" lay-filter="city" disabled required lay-verify="required">
					<option value="">请选择城市</option>
				</select>
			</div>
			<div class="layui-input-inline">
				<select name="area" id="area" lay-filter="area" disabled required lay-verify="required">
					<option value="">请选择县区</option>
				</select>
			</div>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">备注</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input bz" lay-verify="" placeholder="" id="bz">
		</div>
	</div>
	<div class="layui-form-item ">
		<label class="layui-form-label">管理员</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input " lay-verify="required" required placeholder="请选择学校管理员" style="width: 50%;" id="admin_name" readonly autocomplete="off">
			<input type="hidden" id="admin_id"/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addSchool">立即添加</button>
			<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript" th:src="@{/layui/layui.js}" src="../../../static/layui/layui.js"></script>
<script type="text/javascript" th:src="@{/js/schoolAdd.js}" src="../../../static/js/schoolAdd.js"></script>
</body>
</html>